You can also specify delete rules for relationships. For example, when you delete a department object, you can specify that:
Enterprise Objects Framework keeps track of primary and foreign key data for you. You don't have to represent that information in your enterprise objects, and you don't have to worry about generating and propagating key values.
For information on eliminating database artifacts from your object model, see the chapter "Designing Enterprise Objects". For information on how the Framework generates primary key values, see the chapter "Answers to Common Design Questions".
Additionally, the Framework provides a separate in-memory transaction management feature. You can create nested contexts in which a child context's changes are folded into the parent context only upon successful completion of an in-memory operation. For more information on nested contexts, see the chapter "Application Configurations".
Enterprise Objects Framework determines that a database row has changed since its corresponding object was fetched using a technique called snapshotting. When the Framework fetches an object from the database, it records a snapshot of the state of the corresponding database row. When changes to an object are saved to the database, the snapshot is compared with the corresponding database row to ensure that the row data hasn't changed since the object was last fetched. For more information on snapshots, see the EODatabaseContext class specification in the Enterprise Objects Framework Reference.
Table of Contents
Next Section